<template>
  <div class="login">
    <div class="logo">
      <el-image
        style="width: 200px;margin-left:15%; "
        :src="require('@/assets/images/login/login_logo.png')"
      ></el-image>
    </div>
    <div class="login-left">
      <div class="login-left__logo">
        <el-image
          style="width: 610px; margin-left:15%; margin-top:100px;"
          :src="require('@/assets/images/login/login_left_icon.png')"
        ></el-image>
      </div>
    </div>
    <div class="login-right">
      <div class="login-form">
        <h3 class="title">工船宝后台管理系统</h3>
        <el-tabs>
          <el-tab-pane label="密码登录" lazy>
            <password-form></password-form>
          </el-tab-pane>
          <el-tab-pane label="短信登录" lazy>
            <phone-form></phone-form>
          </el-tab-pane>
        </el-tabs>
        <!-- <reset-password></reset-password> -->
      </div>

      <!--  底部  -->
      <div class="el-login-footer">
        <a target="_blank" href="https://beian.miit.gov.cn/" style="color: #0a65f3">闽ICP备2023012750号-1</a><br/>
        <span style="color: #313131">Copyright © 2018-2024 gcb.latu88.com All Rights Reserved.</span>
      </div>
    </div>


    <el-image
        style="width:100%;position:absolute;left:0;bottom:0;right:0;z-index:1;"
        :src="require('@/assets/images/login/bg_bottom.png')"
      ></el-image>
  </div>
</template>

<script>
import passwordForm from './components/password-form.vue';
import phoneForm from './components/phone-form.vue';

export default {
  name: 'Login',
  components: {
    passwordForm,
    phoneForm,
  },
};
</script>

<style lang="scss" scoped>
.login {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  background-color: #F5F8FF;
  .logo {
    position: absolute;
    top: 35px;
    left: 35px;
    z-index: 1;
  }
  .login-left {
    flex-shrink: 0;
    height: 100%;
    width: 75%;
    position: relative;
    z-index:10;
    .login-left__logo {
      height: inherit;
      display: flex;
      justify-content: center;
      flex-direction: column;
    }
  }
  .login-right {
    flex-shrink: 0;
    height: 100%;
    width: 25%;
    position: relative;
    .login-form {
      position: absolute;
      z-index:10;
      left: -200px;
      top: 50%;
      transform: translateY(-50%);
      border-radius: 6px;
      background: #ffffff;
      width: 400px;
      height: 522px;
      padding: 50px 40px 82px 40px;
      & ::v-deep .el-tabs__header {
        margin-bottom: 34px;
      }
      & ::v-deep .el-tabs__nav {
        width: 100%;
      }
      & ::v-deep .el-tabs__item {
        padding: 0 32px;
        width: 50%;
        font-size: 18px;
        text-align: center;
        line-height: 26px;
      }
    }
    .login-form__point {
      position: absolute;
      left: -67.5px;
      top: calc(50% + 261px + 6px);
    }
    .el-login-footer {
      height: 40px;
      line-height: 32px;
      position: absolute;
      z-index:10;
      bottom: 50px;
      left: -300px;
      width: 600px;
      text-align: center;
      color: #fff;
      font-family: Arial;
      font-size: 14px;
      letter-spacing: 1px;
    }
  }
}

.title {
  font-size: 28px;
  font-weight: bold;
  text-align: center;
  color: #000000;
  margin: 0 0 55px 0;
}

.login-form ::v-deep .el-input input {
  height: 45px;
  background: #f8f8f8;
}

.login-form ::v-deep .el-input input {
  //height: 38px;
  border-color: #e2e2e2;
}

::v-deep .login-tip {
  font-size: 13px;
  text-align: center;
  color: #bfbfbf;
}

::v-deep .login-code {
  width: 38%;
  height: 45px;
  float: right;
}
::v-deep .login-code-img {
  height: 45px;
}
</style>
